package com.suzj.extraenchantments.enchant.Ench_03;

import com.suzj.extraenchantments.Config;
import com.suzj.extraenchantments.enchant.EnchantmentTypeEE;

import com.suzj.extraenchantments.enchant.EquipmentSlotTypeSet;
import net.minecraft.world.item.enchantment.Enchantment;


public class EnchantmentTemperedWings extends Enchantment {
    public EnchantmentTemperedWings() {
        super(Enchantment.Rarity.RARE, EnchantmentTypeEE.ELYTRA, EquipmentSlotTypeSet.ARMORS);
    }

    public int getMaxLevel() {
        if (((Boolean) Config.SERVER.isTemperedWings.get()).booleanValue()) {
            return 1;
        }
        return 0;
    }

    public boolean isTreasureOnly() {
        return true;
    }
}